<template>
  <div class="Subunit-box">
    <component :is="getchild" :info="info" />
    <!-- <Subunit1Child1 v-if="props.ModuleId == 12" />
    <Subunit1Child2 v-else /> -->
  </div>
</template>

<script setup lang="ts">
import { computed } from 'vue';
import { useProjectStore } from '@/store';
import Subunit1Child1 from './Subunit1Child1.vue';
import Subunit1Child2 from './Subunit1Child2.vue';
const store = useProjectStore();
const props = defineProps({
  ModuleId: {
    type: Number,
  },
  info: {
    type: Object,
  },
});
const getchild = computed(() => {
  switch (props.ModuleId) {
    case 12:
      return Subunit1Child1;
      break;
  }
});
</script>

<style lang="less" scoped>
@import './index.less';
</style>
